<template>
	<view class="content page" style="height: 100%;">
		<div class="title">{{actobj.bigTitle}}</div>
		<div class="des">{{actobj.createTime}}</div>
		<rich-text style="padding-bottom: 30px;" :nodes="actobj.articleContent"></rich-text>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				actobj: {}
			}
		},
		onLoad(options) {
			this.list(options.id)
			console.log(options)
		},
		methods: {
			list(id){
				uni.request({
					url: 'http://192.168.31.42:8088/system/article/app/listApp?id='+ id, //仅为示例，并非真实接口地址。
					success: (res) => {
						this.actobj = res.data.rows[0]
						console.log(res.data.rows);
					}
				});
			},
		}
	}
</script>

<style>
	.content{
		width: 100%;
		padding: 0 20px 0 20px;
		box-sizing: border-box;
	}
	.title {
		width: 100%;
		font-size: 22px;
		color: #000;
	}
	.des{
		margin-top: 8px;
		font-size: 14px;
		color: #999;
		margin-bottom: 10px;
	}
</style>
